package indi.gao.springAopTest.dao;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>Description:</p>
 * <p>Copyright: Copyright (c)2020$</p>
 * <p>Company: Tope</p>
 * <P>Created Date :2020$-05$-18$</P>
 * <P>@version 1.0</P>
 */
@Component
public class ListAllBookDao {
    public List<String> listAllBook(Boolean  all) {
        List<String> bookIds = new ArrayList<>();
        if (all) {
            bookIds.add("1");
            bookIds.add("2");
        } else {
            bookIds.add("0");
        }
        return bookIds;
    }
}
